//
//  KSAppManager.swift
//  Supermarket
//
//  Created by liuxm on 2017/10/12.
//  Copyright © 2017年 kushao. All rights reserved.
//

import UIKit

class HNAppManager: NSObject {
    let version = Bundle.main.infoDictionary!["CFBundleShortVersionString"] as! String
    
    func setup(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) {
        // 百度统计
        self.baiduStatistics()
    }
    
    /// 百度统计
    fileprivate func baiduStatistics() {
        let baiduStat = BaiduMobStat.default()
        baiduStat?.shortAppVersion = Bundle.main.infoDictionary!["CFBundleShortVersionString"] as! String
        #if DEBUG
             baiduStat?.start(withAppId: "5f3f08f3c9")
        #else
             baiduStat?.start(withAppId: "a33716d54a")
        #endif
    }
}
